package com.bawei.mvvm.http;

import com.bawei.mvvm.entity.ApiResponse;
import com.bawei.mvvm.entity.Goods;
import com.bawei.mvvm.entity.User;

import java.util.List;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface ApiService {
    //商品
    @GET(ConstantUtils.GOODS_URL)
    LiveData<ApiResponse<List<Goods>>> goods(@Query("category_id") int category_id, @Query("currentPage") int currentPage, @Query("pageSize") int pageSize);

//    //登陆
//    @POST(ConstantUtils.LOGIN_URL)
//    Observable<ApiResponse<User>> login();
//    //下播
//    @POST(ConstantUtils.STOP_PUSH_URL)
//    Observable<ApiResponse<String>> stop();


}
